import {createApp, provide} from 'vue';
import App from './App.vue';
import './registerServiceWorker';
import ccrouter from './router';
import store from './store';
import installElementPlus from './plugins/element/element';
import buildConfig from '@/util/CommonParam';
import '@/assets/style/all-style.scss';
import {loadingUtil} from '@/util/LoadingUtil';

const app = createApp(App);
installElementPlus(app);
app.use(store);
app.use(ccrouter.router);
app.config.globalProperties.$store = store;
app.config.globalProperties.$env = buildConfig;
app.config.globalProperties.$loadingUtil = loadingUtil;
app.provide('env', buildConfig);
app.mount('#app');
export default app;

